<div class="namhocs index">
	<h2><?php __('QUẢN LÍ NĂM HỌC');?></h2>
    <h4 align="right"> 
        <?php
            echo $this->Html->link(__('THÊM NĂM HỌC', true), array('action' => 'add')); 
        ?> 
    </h4>
	<table cellpadding="0" cellspacing="0">
	<tr>
            <th><?php echo $this->Paginator->sort('STT');?></th>
			<th><?php echo $this->Paginator->sort('NĂM HỌC','id');?></th>
			<th><?php echo $this->Paginator->sort('GHI CHÚ','ghichu');?></th>
			<th class="actions"><?php __('THAO TÁC');?></th>
	</tr>
	<?php
	$i = 0;
    //Số thứ tự
    $stt = 1;
	foreach ($namhocs as $namhoc):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
        <td><?php echo $stt; ?>&nbsp;</td>
		<td><?php echo $namhoc['Namhoc']['id']; ?>&nbsp;</td>
		<td><?php echo $namhoc['Namhoc']['ghichu']; ?>&nbsp;</td>
		<td class="actions">
			<!--<?php echo $this->Html->link(__('View', true), array('action' => 'view', $namhoc['Namhoc']['id'])); ?> -->
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $namhoc['Namhoc']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $namhoc['Namhoc']['id']), null, sprintf(__('Bạn có chắc muốn xóa năm học %s?', true), $namhoc['Namhoc']['id'])); ?>
		</td>
	</tr>
    <?php   
        $stt += 1;    
        endforeach; 
    ?>
	</table>
<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiển thị %current% mẫu tin trong tổng số %count% mẫu tin, bắt đầu tại %start%, và kết thúc tại %end%', true)
	));
	?>	</p>

	<div class="paging">
        <?php echo $paginator->first(__('Trang đầu'));?>
		<?php echo $this->Paginator->prev('<< ' . __('Trước', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Sau', true) . ' >>', array(), null, array('class' => 'disabled'));?>  
        <?php echo $this->Paginator->last(__('Trang cuối'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Namhoc', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Dvutcbs', true), array('controller' => 'dvutcbs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Dvutcb', true), array('controller' => 'dvutcbs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Hockies', true), array('controller' => 'hockies', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hocky', true), array('controller' => 'hockies', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Loaicdcbs', true), array('controller' => 'loaicdcbs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Loaicdcb', true), array('controller' => 'loaicdcbs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Phanloaicbs', true), array('controller' => 'phanloaicbs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Phanloaicb', true), array('controller' => 'phanloaicbs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Thangs', true), array('controller' => 'thangs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Thang', true), array('controller' => 'thangs', 'action' => 'add')); ?> </li>
	</ul>
</div>